import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Frame;

import javax.swing.JButton;
import javax.swing.JFrame;

public class ComponentTest {
	public static void main(String[] args) {
		Frame frame = new Frame();
		frame.setSize(600, 400);
		frame.setTitle("AWT Component Test");
		frame.setVisible(true);
		frame.add(BorderLayout.NORTH, new Button("OK"));
		frame.add(BorderLayout.WEST, new JButton("Cancel"));

		JFrame frame2 = new JFrame();
		frame2.setSize(600, 400);
		frame2.setTitle("Swing Component Test");
		frame2.setVisible(true);
		frame2.add(BorderLayout.NORTH, new JButton("OK"));
		frame2.add(BorderLayout.WEST, new Button("Cancel"));

	}
}
